home *** CD-ROM | disk | FTP | other *** search
/ PC Basics 53 / PC Basics Issue 53.iso / Software / Internet / Invboard.exe / PC Basics 53 / Invboard / upload / Skin / s1 / skin_online.php < prev    next >
Encoding:
PHP Script  |  2002-06-12  |  3.3 KB  |  98 lines

  1. <?php
  2.  
  3. class skin_online {
  4.  
  5.  
  6.  
  7. function end($links) {
  8. global $ibforums;
  9. return <<<EOF
  10.           <br>
  11.           <table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
  12.             <tr>
  13.               <td valign='middle' align='left'>{$links[SHOW_PAGES]}</td>
  14.             </tr>
  15.           </table>
  16. EOF;
  17. }
  18.  
  19. function show_row($session) {
  20. global $ibforums;
  21. return <<<EOF
  22.               <!-- Entry for {$session['member_id']} -->
  23.               <tr>
  24.                 <td id='row1'>{$session['member_name']}</td>
  25.                 <td id='row1'>{$session['where_line']}</td>
  26.                 <td id='row1' align='center'>{$session['running_time']}</td>
  27.                 <td id='row1' align='center'>{$session['msg_icon']}</td>
  28.               </tr>
  29.               <!-- End of Entry -->
  30. EOF;
  31. }
  32.  
  33. function Page_end($links) {
  34. global $ibforums;
  35. return <<<EOF
  36.             <!-- End content Table -->
  37.             <tr>
  38.             <td colspan='4' id='category'> </td>
  39.             </tr>
  40.             </table>
  41.             </td>
  42.             </tr>
  43.             </table>
  44.             <br>
  45.             <table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
  46.             <tr>
  47.               <td valign='middle' align='left'>$links</td>
  48.             </tr>
  49.           </table>
  50. EOF;
  51. }
  52.  
  53. function Page_header($links) {
  54. global $ibforums;
  55. return <<<EOF
  56. <script language='Javascript' type='text/javascript'>
  57.         <!--
  58.         function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
  59.             if (posleft != 0) { x = posleft }
  60.             if (postop  != 0) { y = postop  }
  61.         
  62.             if (!scroll) { scroll = 1 }
  63.             if (!resize) { resize = 1 }
  64.         
  65.             if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
  66.               X = (screen.width  - width ) / 2;
  67.               Y = (screen.height - height) / 2;
  68.             }
  69.             if (scroll != 0) { scroll = 1 }
  70.         
  71.             var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
  72.          }
  73.         //-->
  74.     </script>
  75.  
  76.  
  77.           <table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
  78.             <tr>
  79.               <td valign='middle' align='left'>$links</td>
  80.             </tr>
  81.           </table>
  82.           <br>
  83.        <table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
  84.         <tr>
  85.             <td>
  86.               <table cellpadding='4' cellspacing='1' border='0' width='100%'>
  87.                 <tr>
  88.                    <td align='left' width='30%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['member_name']}</td>
  89.                    <td align='left' width='30%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['where']}</td>
  90.                    <td align='center' width='20%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['time']}</td>
  91.                    <td align='left' width='10%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'> </td>
  92.                 </tr>
  93. EOF;
  94. }
  95.  
  96.  
  97. }
  98. ?>